package cn.net.zidian.mvvm.adapter;


import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import cn.net.zidian.R;
import cn.net.zidian.bean.HistoryBean;


public class HistoryAdapter extends BaseQuickAdapter<HistoryBean, BaseViewHolder> {

    public HistoryAdapter() {
        super(R.layout.item_guiji);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, HistoryBean item) {
        if (item != null) {
            baseViewHolder.setText(R.id.tv_name, "搜索内容：" + item.getTitle());
            baseViewHolder.setText(R.id.tv_info, "类型：" + item.getType());
        }
    }
}
